/*
  Name: DeadProxyClientEventHandler.h
  Copyright: 
  Author: Carl Chatfield
  Date: 15/01/08 16:48
  Description: Handles client events
*/


#ifndef __DEADPROXYFRMCLIENTEVENTHANDLER_h__
#define __DEADPROXYFRMCLIENTEVENTHANDLER_h__

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include <wx/wx.h>
#else
	#include <wx/wxprec.h>
#endif

#include "DeadProxyClientEvent.h"
#include "DeadProxyEventQueue.h"

class EventHandler : public wxThread
{
    private:
        wxMutex * EvtMutex;
        wxCondition * EvtCondition;
        wxMutex * EvtNoSkip;
        EventQueue * Queue;
        void * ptrClient;
	public:
        virtual void * Entry();
        virtual void OnExit();
        EventHandler(EventQueue * Que, wxMutex* EvtMut, wxCondition* EvtCond, void * pClient);
};

#endif
